Java Systems Design Interview Challenger by Rafael Chinelato del Nero

Java Systems Design Interview Challenger by Rafael Chinelato del Nero

Author:Rafael Chinelato del Nero
Language: eng
Format: epub


13 - Database Replica and

Sharding

Most Microservices must scale databases, and the concepts of database replica and database sharding are vital to understanding when to use them for systems design and systems design interviews.

Database replica will replicate the database in different servers to keep the database more available and avoid losing data. It’s even possible to replicate servers in different countries for disaster recovery.

Database sharding will break the database into separate partitions and give faster data access. Those partition shardings can be distributed across different servers, improving performance, scalability, and availability.

Database Replica

Database replication is the process of creating and maintaining copies of a database on multiple servers, known as replicas. Replication is commonly used in distributed systems to improve data availability, enhance performance, and ensure data durability. It involves synchronizing data changes from a source database to one or more replica databases in a controlled and consistent manner.

Here’s an overview of how database replication works: Replication Topology: A replication topology defines the relationship between the source database and replica databases. Different



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.